<div class="actions">
	<ul>
		<li><?php echo $html->link(__('Thêm nội dung điều tra', true), array('action' => 'add')); ?></li>
	</ul>
</div>
<div class="view">
<h2><?php __('DANH MỤC NỘI DUNG ĐIỀU TRA');?></h2>
<p>
<?php
$this->pageTitle = 'Danh mục nội dung điều tra';
$paginator->options(array('url'=>$this->passedArgs));
echo $paginator->counter(array(
'format' => __('Hiện có %count% mẫu tin - Trang %page%/%pages%', true)
));
?></p>
<table cellpadding="0" cellspacing="0">
<tr>
	<!--th><?php //echo $paginator->sort('STT');?></th-->
	<th><?php echo $paginator->sort('Loại đối tượng','LoaiDt.TEN_LOAI');?></th>
	<th><?php echo $paginator->sort('Diễn giải','NdDt.DG_ND');?></th>
	<th><?php echo $paginator->sort('Ghi chú','NdDt.GHICHU_ND');?></th>
	<th><?php echo $paginator->sort('Đơn vị tính','NdDt.DVT_ND');?></th>
	<th class="actions"><?php __('Hành động');?></th>
</tr>
<?php
$i = 0;
foreach ($ndDts as $ndDt):
	$class = null;
	if ($i++ % 2 == 0) {
		$class = ' class="altrow"';
	}
?>
	<tr<?php echo $class;?>>
		<!--td>
			<?php //echo $ndDt['NdDt']['id']; ?>
		</td-->
		<td>
			<p align="left"><?php echo $ndDt['LoaiDt']['TEN_LOAI']; ?></p>
		</td>
		<td>
			<p align="left"><?php echo $ndDt['NdDt']['DG_ND']; ?></p>
		</td>
		<td>
			<?php echo $ndDt['NdDt']['GHICHU_ND']; ?>
		</td>
		<td>
			<?php  echo $ndDt['Dvtinh']['tendv']/*.' '.$ndDt['NdDt']['DVT_ND']*/; ?>
		</td>
		<td class="actions">
			<?php echo $html->link(__('Xem', true), array('action' => 'view', $ndDt['NdDt']['id'])); ?>
			<?php echo $html->link(__('Sửa', true), array('action' => 'edit', $ndDt['NdDt']['id'])); ?>
			<?php echo $html->link(__('Xóa', true), array('action' => 'delete', $ndDt['NdDt']['id']), null, sprintf(__('Bạn có chắc muốn xóa # %s?', true), $ndDt['NdDt']['id'])); ?>
		</td>
	</tr>
<?php
	endforeach; ?>
</table>
</div>
<div class="paging">
	<?php echo $paginator->prev('<< '.__('Trước', true), array(), null, array('class'=>'disabled'));?>
 | 	<?php echo $paginator->numbers();?>
	<?php echo $paginator->next(__('Sau', true).' >>', array(), null, array('class' => 'disabled'));?>
</div>

